<style lang='scss' type='stylesheet/scss' scoped>
.as-button {
  margin-bottom: 10px;
}
</style>
<template>
  <div>
    <as-h2>type</as-h2>

    <as-card :text="text" title="按钮的类型分为 default / primary / success / warning / danger / text，分别对应以下按钮。默认按钮为 default">
      <as-button>默认按钮</as-button>
      <as-button type="primary">主要按钮</as-button>
      <as-button type="success">成功按钮</as-button>
      <as-button type="warning">警告按钮</as-button>
      <as-button type="danger">危险按钮</as-button>
      <as-button type="text">文本按钮</as-button>
    </as-card>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: "",
  data() {
    return {
      text: `<template>
   <div>
     <as-button>默认按钮</as-button>
     <as-button type="primary">主要按钮</as-button>
     <as-button type="success">成功按钮</as-button>
     <as-button type="warning">警告按钮</as-button>
     <as-button type="danger">危险按钮</as-button>
     <as-button type="text">文本按钮</as-button>
   </div>
 </template>`
    };
  }
};
</script>
